clear all 
set more off

* Step 1: set your directory
cd "/gpfs/home/kmd86/LFS/PublicFilesCode_QJER2/Cleaned_ForDropbox/"

*Step 1b: download useful commands as necessary (uncomment as needed)
*ssc install heatplot, replace
*ssc install palettes, replace
*ssc install colrspace, replace

* ---------------------------------------------------------------------
* ------- everything below here will run automatically
* ---------------------------------------------------------------------

* Step 2: grab a list of all the files required for replication
cd "ReplicationCode_QJE"
local flist : dir . files "FigTabs_*.do", respectcase
di `"`flist'"'

* Step 3: run each of them in order
cd ..
foreach fname of local flist {
	di as red "Executing file: `fname'"
	qui do "ReplicationCode_QJE/`fname'"
}

